﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ctrlWorkFlow.ascx.cs" Inherits="Rendiciones.Web.usercontrols.ctrlWorkFlow" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Button ID="btnWf" runat="server" Style="display: none" />
<asp:ModalPopupExtender ID="mpeWf"  TargetControlID="btnWf" PopupControlID="upWf" BackgroundCssClass="vs12_light_opacity" runat="server"/>
<asp:UpdatePanel runat="server" ID="upWf">
    <ContentTemplate>
        <div class="vs12_light_form vs12_light_form_modal" style="width:700px; display:none;" runat="server" id="pnlWf">
            <div class="title">
                <p><asp:Label runat="server" ID="lblTitulo" Text="Workflow"></asp:Label></p>
                <div class="buttons">
                    <asp:Button runat="server" ID="btnCerrarWf" CssClass="close" OnClick="BtnCerrarWfClick"/>
                </div>
            </div>
            <div class="vs12_light_contenedorMsg" runat="server" id="ErroresWf">
                <table style="width: 100%">
                    <tr>
                        <td style="width:24px; vertical-align: top">
                            <asp:Image ID="ImgErroresWf" runat="server" ImageUrl="~/img/icons/Mensaje/icoError.png"/> 
                        </td>
                        <td>
                            <asp:Label ID="lblErroresWf" runat="server" Text=""/>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="content">
                <fieldset>
                    <table>
                        <tr><td style="width:15%;"><label>Proyecto</label></td><td><strong><asp:Label ID="lblProyecto" runat="server" Text=""/></strong></td></tr>
                        <tr><td><label>Custodio</label></td><td><strong><asp:Label ID="lblCustodio" runat="server" Text=""/></strong></td></tr>
                    </table>
                </fieldset>
                <table>
                    <tr>
                        <td style="width:35%;">
                            <asp:Repeater ID="rptWorkFlow1" runat="server" OnItemCommand="RptWorkFlowItemCommand">
                                <ItemTemplate>
                                    <asp:Button runat="server" ID="btnEtapa" CssClass="boton w100p" Text='<%#Eval("StrEstado")%>' CommandName="etapa" CommandArgument='<%#DataBinder.Eval(Container,"ItemIndex")%>'/>
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                        <td>
                            <asp:Repeater ID="rptWorkFlow2" runat="server">
                                <ItemTemplate>
                                    <div id="divEtapa" runat="server">
                                        <fieldset>
                                        <br />
                                        <asp:HiddenField ID="hdfProyecto" runat="server" Value='<%#Eval("Proyecto")%>' />
                                        <asp:HiddenField ID="hdfCustodio" runat="server" Value='<%#Eval("Custodio")%>' />
                                        <table>
                                            <tr>
                                                <td style="width:5%;"></td>
                                                <td style="width:25%;"><label>Estado</label></td>
                                                <td><strong><asp:Label ID="lblEstado" runat="server" Text='<%#Eval("Estado")%>'/></strong></td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td><label>Responsable</label></td>
                                                <td><strong><asp:Label ID="lblResponsable" runat="server" Text='<%#Eval("Responsable")%>'/></strong></td>
                                            </tr>                  
                                            <tr>
                                                <td></td>
                                                <td><label>Fecha de Entrada</label></td>
                                                <td><strong><asp:Label ID="lblFechaDeEntrada" runat="server" Text='<%#Eval("StrFechaEntrada")%>'/></strong></td>
                                            </tr>                                
                                            <tr>
                                                <td></td>
                                                <td><label>Fecha de Salida</label></td>
                                                <td><strong><asp:Label ID="lblFechaDeSalida" runat="server" Text='<%#Eval("StrFechaSalida")%>'/></strong></td>
                                            </tr>
                                            <tr>
                                                <td></td>
                                                <td><label>Dias en Etapa</label></td>
                                                <td><strong><asp:Label ID="lblDiasEnEtapa" runat="server" Text='<%#Eval("StrDiasEtapa")%>'/></strong></td>
                                            </tr>
                                        </table>
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        </fieldset>
                                    </div>
                                </ItemTemplate>
                            </asp:Repeater>
                        </td>
                    </tr>
                </table>
                <table>
                    <tr>
                        <td class="right">
                            <asp:Button runat="server" CssClass="boton" ID="btnCerrar" Text="Cerrar" OnClick="BtnCerrarClick"/>
                        </td>
                    </tr>
                </table>
                <div style="clear:both;"></div>
                <div class="h30"></div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>